package com.yangshun.wiki.service;

import com.yangshun.wiki.domain.Demo;
import com.yangshun.wiki.mapper.DemoMapper;
import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping
public class DemoService {

    @Resource
    private DemoMapper demoMapper;


    public List<Demo>list() {
        return demoMapper.selectByExample(null);
    }
}
